var express = require('express');
var router = express.Router();


router.get('/api/getInfo', function(req, res, next) {
  return res.send({
    code: 200,
    data: {
      info: '获取接口信息成功'
    },
    msg: 'success'
  })
});

router.get('/user/getUserList', function(req, res, next) {
  return res.send({
    code: 200,
    data:[{id:'1', name:'张三',age: 18}, {id:'2', name:'李四',age: 19}, {id:'3', name:'王五',age: 20}],
    msg: 'success'
  })
});

module.exports = router;